{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="content-tabs">
	        <ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><a href="{:url('Complaint/index')}"><strong>投诉建议列表</strong></a></li>
		<li><a href="{:url('Complaint/index')}"><strong>查看建议与投诉</strong></a></li>
	        </ol>
</div>
			<div class="ibox-content">

					<div class="form-group">
						<label class="col-sm-3 control-label">用户：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="title" name="uname" value="{$ad.uname}"  disabled="disabled" class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">类型：</label>
						<div class="input-group col-sm-4">
						<input type="button" value="{if $ad.complaint_type == 1}商家{elseif $ad.complaint_type==2}产品{elseif $ad.complaint_type==2}服务{else} 其它{/if}" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">投诉时间：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="answer_content"value="{$ad.addtime}"  disabled="disabled"  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">投诉内容：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="answer_content"value="{$ad.content}"  disabled="disabled"  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">回复时间：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="answer_content"value="{$ad.answer_time}"  disabled="disabled"  class="form-control" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-3 control-label">回复内容：</label>
						<div class="input-group col-sm-4">
							<input type="text" id="answer_content" value="{$ad.answer_content}" disabled="disabled"  class="form-control" />
						</div>
					</div>
					
					
					
					<div class="form-group">
						<label class="col-sm-3 control-label">状态：</label>
						<div class="input-group col-sm-4">
							<input type="button" value="{if $ad.status == 1}未回复{else}已回复{/if}"/>
						</div>
					</div>
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							
							<a href="{:url('index')}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script>
	upload_one('{$ad.thumb}');
	$("input[name='status'][value='{$ad.status}']").attr("checked",true);
	$(function() {
		$("#myForm").validate({
			rules: {
				answer_content:"required"
			},
			messages: {
				answer_content: ICON.error + "请输入内容",

			},
			submitHandler: function(form) {
				ajaxForm();
			}
		});
	});
</script>
{/block}